package Javatest2.iftest;

import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int a = scanner.nextInt();

        if (a % 2 == 0) {
            System.out.println("这个数是偶数");

        } else {
            System.out.println("这个数是奇数");
        }


    }
}
